//
//  LBXImageBrowser.h
//  ImageBrowse
//
//  Created by bike on 17/1/20.
//  Copyright © 2017年 bike. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol LBXImageBrowserDelegate;

@interface LBXImageBrowser : NSObject

@property (weak, nonatomic) id <LBXImageBrowserDelegate> delegate;

- (void)showImageAtIndex:(NSInteger)index;                                        //调用代理方法，显示多张图片

@end


@protocol LBXImageBrowserDelegate <NSObject>

@required
- (NSInteger)numberOfImagesForImageBrowser:(LBXImageBrowser *)browser;
- (UIImageView *)imageBrowser:(LBXImageBrowser *)browser imageViewAtIndex:(NSInteger)index;
- (UIImage *)imageBrowser:(LBXImageBrowser *)browser imageAtIndex:(NSInteger)index;

@end
